<?
/*
$contextMenu[1]["link"]      = "?do=Articulo&accion=shwForm";
$contextMenu[1]["linkIcon"]  = "application_add.png";
$contextMenu[1]["linkTitle"] = "Nuevo articulo";
*/


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link href="../css/jquery/jquery-ui-1.8.6/css/smoothness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/jquery/jquery-ui-1.8.6/js/jquery-ui-1.8.6.custom.min.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.blockUI.js"></script>
<script src="../js/jquery/jquery.alerts.js" type="text/javascript"></script>
<link href="../css/jquery/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" /> 
<link href="../css/menu.css" rel="stylesheet" type="text/css" media="screen" /> 
<script src="../js/menu_acordeon.js" type="text/javascript"></script>


<body>

<div id="main">
    <? include("header.inc");?>
    <div id="zonaContenedor">

<div id="module">
	<h3>:: Movimientos de Stock </h3>
    <div>

<form action="index.php?do=StockMovimiento&accion=listarStockMovimiento" method="post">    
    Almacén : <input type="text" name="almacenId" size="5" value="<? echo $almacenId;?>">
    Código artículo : <input type="text" name="articuloId" size="20" value="<? echo $articuloId;?>">  
    <input type="submit" name="aceptar" value="aceptar">    
</form>    
</br></br>        

    
<table width="98%">
	<tr bgcolor="silver">
		<th>Código</th>
          <th>Descripción</th>
          <th>Almacén</th>
          <th>E/S</th>
          <th>Tipo Mov</th>
          <th>Doc.Tipo</th>
          <th>Doc.Nro</th>                    
          <th>Fecha</th>
          <th>Cantidad</th>
          <th>Costo</th>
          <th>Usuario</th>
     </tr>
	<?php
	while($item = $result->fetch()){
	?>
	<tr>
		<td>
            <a href="index.php?do=Articulo&accion=shwForm&articuloId=<? echo $item['stkm_artId']?>">  
            <?php echo $item['stkm_artId']?>
            </a>    
          </td>
		<td><?php echo $item['stkm_artDescripcion']?></td>
          <td><?php echo $item['stkm_almId']?></td>
          <td align="right"><?php echo $item['stkm_ing_sal']?></td>
          <td align="right"><?php echo $item['stkm_movTipo']?></td>
          <td align="right"><?php echo $item['stkm_docReferenTipo']?></td>
          <td align="right"><?php echo $item['stkm_docReferenNro']?></td>
          <td align="right"><?php echo $item['stkm_movFecha']?></td>  
          <td align="right"><?php echo $item['stkm_cant']?></td>
          <td align="right"><?php echo $item['stkm_costo']?></td>
          <td align="right"><?php echo $item['stkm_modif_usr']?></td>                
	</tr>
	<?php
	}
	?>
</table>
  </div>
</div>

</body>
</html>